/*
 *  Map.c
 *  final
 *
 *  Created by Javier Quevedo on 25/01/09.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */
#import "Map.h"
#import "Node.h"
#import "Model.h"

Map *initMap(){
	Map *newMap = malloc(sizeof(Map));
	newMap->files=malloc(sizeof(char)*1*40);
	newMap->files[0]="models/map/ground.sgf";
	newMap->model= malloc(sizeof(Model));
	LoadModel(newMap->model, newMap->files, 1);
	newMap->main = initNode();
	newMap->main->modelPart= newMap->model->modelParts[0];
	//newMap->ground = newMap->main;
	//setNodeTranslation(newMap->main, 0.0, 0.0, 0.0);
	
	return newMap;
}

void releaseMap(Map *map){

}
